import { IsEmptyTpe } from "@/models/log";

export const isEmpty = (value: IsEmptyTpe) => {
  return value === null || value === undefined || value === '';
};
export const prettyPrint = (title: string, text: string, color: string) => {
  console.log(
    `%c ${title} %c ${text} %c`,
    `background:${color};border:1px solid ${color}; padding: 1px; border-radius: 2px 0 0 2px; color: #fff;`,
    `border:1px solid ${color}; padding: 1px; border-radius: 0 2px 2px 0; color: ${color};`,
    'background:transparent'
  );
};